/**
 * Created by xuzhihan on 2018/1/9.
 */
(function () {
    'use strict';

    requirejs.config({
        map: {
            "*": {
                "css": "lib/require-css/css.min.js"
            }
        },
        waitSeconds: 0,
        baseUrl: "./",
        urlArgs: "20180109",// 版本控制
        paths: {
            "text": 'lib/require-text/text.2.0.15',
            "root": "common/root",
            "Vue": "lib/vue/vue.min",
            "VueRouter": "lib/vue-router/vue-router.min",
            "jquery":"lib/jquery/jquery.min",
            "bootstrap": "lib/bootstrap/dist/js/bootstrap.min",

        },
        shim: {
            //"root": {
            //    deps: ["vue", "vue.router", "jquery"],
            //},
            "VueRouter": {
                deps: ["Vue"],
            },
            "bootstrap": {
                deps: ["jquery"],   //依赖模块
            },
            "index": {
                deps: ["Vue", "VueRouter"],
            },

        }
    });

    require(["root"]);

    //define(["vue", "vue.router"], function(Vue, VueRouter){
    //    var router = new VueRouter({
    //        routes: [
    //            {
    //                path: "/:page",
    //                component: function () {
    //                    var p = Promise();
    //                    console.log(this.$route.params.page);
    //                    return p.
    //                }
    //            }
    //        ]
    //    })
    //
    //});

})();


//var app = {};
//app.initVue = function(data) {
//    new Vue(data);
//};
